<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="superviseMenu" />
<meta name="nav" content="2" />
<meta name="acc" content="0" />
<title>交工检测申请</title>
<script type="text/javascript">
	$(document).ready(function() {
		$("#orgName").focus();
		$("#inputForm").validate({
			event : "blur",
			isTip : true
		});
		$("#reportDate").addClass("Wate").bind("focus", function() {
			WdatePicker({
				skin : 'whyGreen',
				maxDate : '%y-%M-%d',
				dateFmt : 'yyyy-MM-dd'
			});
		});
	});
	
	var i = 1;
	function addFile(divName, fileName) {
		var dv = document.getElementById(divName);

		var file = document.createElement("input");
		file.type = "file";
		file.name = fileName;
		file.id = fileName + i;
		dv.appendChild(file);

		var btn = document.createElement("input");
		btn.type = "button";
		btn.id = btn.name = "btn" + i;
		btn.value = "删除";

		btn.onclick = function() {
			var b = document.getElementById(btn.id);
			dv.removeChild(b.nextSibling);
			dv.removeChild(b.previousSibling);
			dv.removeChild(b);
		}

		dv.appendChild(btn);
		dv.appendChild(document.createElement("BR"));

		i++;
	}
</script>
</head>
<body>
<div align="center"><h2>交工检测申请书</h2></div>
<form  action="${ctx }/business/acct/petition!input.action" method="post" enctype="multipart/form-data">
	<input type="hidden" name="id" id="id" value="${id }"> <input
			type="hidden" name="fid" id="fid" value="${fid }"> <input
			type="hidden" name="taskId" id="taskId" value="${taskId }">
		<div>
		  <table width="734" border="1">
		    <tr>
			    <td width="724"><h4><strong>东莞市交通工程质量监督站</strong>：</h4></td>
	        </tr>
			  <tr>
			    <td><label>
			      <input value='<pt:labels type="proj" argument1="${projId }" single="true"></pt:labels>' readonly="readonly">
		        工程全部合同段均已具备交工验收条件，我管理处（单位）已按照《公路工程竣（交）工验收办法》及</label></td>
		      </tr>
			  <tr>
			    <td>《公路工程竣（交）工验收实施细则》的规定，组织完成对各合同段的交工验收，各合同段均已通过交工验收。</td>
		      </tr>
			  <tr>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;特此报告。 </td>
		      </tr>
			  <tr>
			    <td>&nbsp;</td>
		      </tr>
			  <tr>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;随报告附上以下资料：</td>
		      </tr>
			  <tr>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1、施工、监理单位工作总结报告； </td>
		      </tr>
			  <tr>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2、施工、监理单位工程质量评定资料、经监理审查通过的施工单位的交工验收申请；</td>
		      </tr>
			  <tr>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3、单位工程重大设计变更资料； </td>
		      </tr>
			  <tr>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4、公路工程交工验收证书； </td>
		      </tr>
			  <tr>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5、公路工程交工验收报告； </td>
		      </tr>
			  <tr>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6、交工检测意见整改回复； </td>
		      </tr>
			  <tr>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7、监督过程整改回复； </td>
		      </tr>
			  <tr>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8、其它有关资料； </td>
		      </tr>
			  <tr>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;（建设单位联系人：
			      <label>
			        <input type="text" name="contact" id="contact" value="${contact }">
		          </label>
		            电话：
		        <label>
		          <input type="text" name="phone" id="phone" value="${phone }">
		          </label>
		          ） </td>
		      </tr>
			  <tr>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;建设单位（项目法人）： 
			      <label>
			        <input type="text" name="auditor" id="auditor" value="${flowDetection.auditor }">
	            </label></td>
		      </tr>
			  <tr>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;申请日期：
			     
			        <input type="text" name="prepareDate" id="prepareDate" value="${prepareDate }">
	          </td>
		      </tr>
			  
			  <tr>
			    <td>&nbsp;</td>
		      </tr>
		  </table>
			<c:if test="${not empty attachments }">
			  <div>
					<h6>已有附件</h6>
				</div>
				<table>
					<c:forEach items="${attachments }" var="attachment"
						varStatus="state">
						<tr id="tr${state.index }">
							<td colspan="4"><a title="下载"
								href="${ctx}/servlet/annex?id=${attachment.id}">${attachment.upfileFileName}(${attachment.type})<fmt:formatDate
										value="${attachment.fileTime}" pattern="yyyy-MM-dd" /> </a> <span
								onclick="deleteAttachmentById('${attachment.id}','tr${state.index }')"
								class="delete" title="删除附件"></span></td>
						</tr>
					</c:forEach>
				</table>
			</c:if>
		</div>
		<div class="type-button" align="center">
			<input type="button" value="下载" onclick="window.location.href='${ctx}/business/acct/petition!word.action?id=${id }'">
				<input type="button" class="button" value="关闭" onclick="window.parent.close()">
		</div>
	</form>
</body>
</html>